<div class="maintop">
    当前位置：房间管理 > 房间用户列表
    <a href="javascript:;" action="<?=$basepath?>?roomid=<?=$roomid?>" id="btn_refresh" class="mainFrame button">刷新</a>
    <? if(ISDEBUG){ ?>
        <a href="javascript:$('.debuginfo').toggle();" class="button">调试信息</a>
    <? } ?>
</div>
<div class="main-search">
    <table width="100%">

        <tbody><tr>
            <td>
                【<?=$roomdata['name']?>】当前共有<?=count($userlist)?>人在线
            </td>
        </tr>
        </tbody>

    </table>
</div>
<div id="mainbody">
    <table width="100%" class="tablist">
        <tr class="trbg">
            <th>客户端号</th>
            <th>玩家号码</th>
            <th>玩家昵称</th>
            <th colspan="3">聊天室管理</th>
            <th>最后发言</th>
        </tr>
        <? foreach($userlist as $client_id=>$v){ ?>
            <tr>
                <td><?=$client_id?></td>
                <td><?=$v['uno']?></td>
                <td><?=$v['nickname']?></td>
                <td><a href="<?=$basepath?>_killuser?roomid=<?=$roomid?>&client_id=<?=$client_id?>&nickname=<?=$v['nickname']?>"  target="ajax" func="loadpage" class="upbutton icon-paper-plane" title="送飞机票"></a></td>
                <td><a href="<?=$basepath?>_addblackuser?uno=<?=$v['uno']?>&roomid=<?=$roomid?>&client_id=<?=$client_id?>&roomname=<?=$roomdata['name']?>" class="upbutton icon-bookmark" title="加入黑名单" target="ajax" func="loadpage"></a>
                <td><a href="<?=$basepath?>_addwhiteuser?uno=<?=$v['uno']?>&roomid=<?=$roomid?>&client_id=<?=$client_id?>&roomname=<?=$roomdata['name']?>" class="upbutton icon-bookmark-empty" target="ajax" func="loadpage" title="加入白名单"></a>
                <td><?=(isset($v['lastSayTimes']) ? date('H:i:s',$v['lastSayTimes']) : '--')?></td>
            </tr>
        <? } ?>
    </table>
</div>